package com.bangdao.app.jetpacktest.jetpack.databinding.utils;

/**
 * @ProjectName: JetpackTest
 * @ClassName: BookRatingUtil
 * @Description: java类作用描述
 * @Author: luhui
 * @Email: hui.lu@bangdao-tech.com
 * @CreateDate: 2022/5/24 10:10
 * @UpdateUser: luhui
 * @UpdateDate: 2022/5/24 10:10
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class BookRatingUtil {
    public static String getRatingString(int rating){
        switch (rating){
            case 0:
                return "零星";
            case 1:
                return "一星";
            case 2:
                return "二星";
            case 3:
                return "三星";
            case 4:
                return "四星";
            case 5:
                return "五星";
            default:
                return "";
        }
    }
}
